package com.example.lc.myinternationalizationdemo;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

/**
 * 国际化遇到的坑 网上找到额国家代码缩写都是错的折腾了半天郁闷死. http://dditblog.com/blog_436.html
 */
public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    private Button btn_select_lenght;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();

    }

    private void initView() {
        btn_select_lenght = (Button) findViewById(R.id.btn_select_lenght);

        btn_select_lenght.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_select_lenght:
                startActivity(new Intent(this,MainActivityTwo.class));
                break;
        }
    }
}
